home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / Documents / JAVA Programming / examples / 14 / myURL.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-09-08  |  1.0 KB  |  13 lines

  1. import java.net.URL;
  2.  
  3. class myURL {
  4.    public static void main(String[] var0) throws Exception {
  5.       URL var1 = new URL("http://coop.chuvashia.edu");
  6.       System.out.println("Protocol: " + var1.getProtocol());
  7.       System.out.println("Port: " + var1.getPort());
  8.       System.out.println("Host: " + var1.getHost());
  9.       System.out.println("File: " + var1.getFile());
  10.       System.out.println("Ext: " + var1.toExternalForm());
  11.    }
  12. }
  13.